<%@ page language="java" import="java.util.*" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@page import="com.manage.grouppriv.GroupVo"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
GroupVo g = (GroupVo)request.getAttribute("groupVo");
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
    <link href="<%=path %>/images/css.css" rel="stylesheet" type="text/css">
    <script type="text/javascript">
    function submit1() {
		var groupname = document.getElementById("groupname");
		if(groupname.value.length < 1){
			showMsg("分组名称不能为空！");
			return false;
		} 
	}
	function reset1(){
		var form = document.getElementById("from1");
		form.reset();
	}
	function showMsg(msg){
		document.getElementById('showmsg').style.display = 'block';
		document.getElementById('showmsg').innerText = msg;
		window.setTimeout("hiddenMsg()", 3000);
	}
	function hiddenMsg(){
		document.getElementById('showmsg').style.display = 'none';
		document.getElementById('showmsg').innerText = '';
	}
    </script>
  </head>
<body class="bg_003">
<div id="Layer2" style="position:absolute; width:514px; height:142px; z-index:2; left: 240px; top: 28px"> 
  <form id="from1" action="<%=path %>/group/modGroup.action" enctype="multipart/form-data" method="post"
		onsubmit="return submit1();">
    <table width="100%" border="0" height="100%" bgcolor="#CCCCFF" cellpadding="1" cellspacing="0">
      <tr bgcolor="#Ffffec"> 
        <td width="20%" height="74" align="right">*分组名称：</td>
        <td width="80%">
           <input size=40 type="hidden" id="groupid" name="groupvo.id" value="<%=g.getId() %>"/>
		   <input size=40 type="text" id="groupname" name="groupvo.name" value="<%=g.getName() %>"/>
         </td> </tr>
      <tr bgcolor="#Ffffec"> 
        <td width="20%" align="right">分组描述：</td>
        <td width="80%">
          <textarea name="groupvo.descr" id="groupdesc" rows="5" cols="40"><%=g.getDescr() %></textarea>
        </td> </tr>
      <tr bgcolor="#Ffffec"> 
        <td colspan="2" height="30"> 
          <div align="center"> 
            <input type="submit" value="保存" />
            <input type='button' value='返回' onclick='location.href="<%=basePath%>/group/findAllGroup.action"' />
          </div></td></tr>
</table>
<br>
<div id="showmsg" style="display:none" align="center">

</div>  
</form>
</div>
<script type="text/javascript">
var msg = "${requestScope.rMsg}";
if(msg != ""){
	showMsg(msg);
}
</script>
</body>
  </body>
</html>
